package com.jash.labor.context;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class ContextCommon {
    public static int distributionIndex = 0;
    public static String[] distribution = new String[]{"383","384"};
    public static List notCallList=  new ArrayList();
    public static String lastCreateTime = "";
    //附件的URI前缀
    //public static final String FILE_URI = "http://127.0.0.1:80/sxd/";
    public static final String FILE_URI = "http://live20190917.oss-cn-beijing.aliyuncs.com/";
    //public static final String FILE_URI = "http://localhost:8080/upload/";
    //附件存储的路径
    public static final String FILE_PATH = "/upload/";
    //public static final String FILE_PATH = "D:\\IdeaProjects\\sxdWeb\\out\\artifacts\\sxdWeb_war_exploded\\upload\\";
    //微信pay 下单
    public static final String UNIFIED_ORDER = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    //在线用户缓存
    public static final Map<String, Long> CURRENT_ONLINE_USERS = new ConcurrentHashMap<String, Long>();//全局map，存储用户更新的时间
    public static final Long LAST_ALIVE_INTERVAL = 720000L;//用户最后更新经纬度判断间隔时间
    //商城地址
    public static final String SHOP_URL = "http://127.0.0.1/shopxxb2b2c";
    //商品地址
    public static final String GOODS_URL = "http://127.0.0.1/shopxxb2b2c/product/detail/";
    //极光推送
    public static final String JPUSH_APP_KEY = "905f46d1eee64400fdda5abf";//"6bed216930f5eed52d0a7d6f";
    public static final String JPUSH_MASTER_SECRET = "399b5608e831471ae234e172";//"8807a7169a27d3a394940887";
    //极光推送
    public static final String JPUSH_APP_KEY_MAL = "3df2f5a6edd54d878352a642";//"6bed216930f5eed52d0a7d6f";
    public static final String JPUSH_MASTER_SECRET_MAL = "95912ce832808929f6929c1e";//"8807a7169a27d3a394940887";
    //极光推送
    public static final String JPUSH_APP_KEY_MAIN = "99a1e6cabf87f4cc312fd04f";//"6bed216930f5eed52d0a7d6f";
    public static final String JPUSH_MASTER_SECRET_MAIN = "e526754719afb71bdc592872";//"8807a7169a27d3a394940887";

    //高德云图
    public static final String AMAP_AK = "00afddbee5178cb9f0fee51b1c198a28";
    public static final String AMAP_TABLE_ID = "5c1129687bbf195c07a200c5";
    public static final String AMAP_RADIS = "50000";//高德搜索半径
    public static int pageSize = 3;// 每页两条

    public static final String JPUSH_CODE_SEND_ORDER = "0";//发送订单
    public static final String JPUSH_CODE_REPLY_ORDER = "1";//回复订单
    public static final String JPUSH_CODE_CANCEL_ORDER = "2";//取消订单
    public static final String JPUSH_CODE_SELECTED_ORDER = "3";//回复被选择
    public static final String JPUSH_CODE_NOT_SELECTED_ORDER = "4";//回复没被选择
    public static final String JPUSH_CODE_ORDER_ARRIVED = "5";//订单被用户点击到达
    public static final String JPUSH_CODE_ORDER_APPOINT = "13";//订单被用户点击到达
    public static final String JPUSH_CODE_ORDER_PAYMENT = "6";//订单服务结束，进入支付
    public static final String JPUSH_CODE_COMMENT = "7";//订单进入评价
    public static final String JPUSH_CODE_ORDER_FINISH = "8";//订单已完成
    public static final String JPUSH_CODE_ORDER_PAYMENT_ONLINE = "9";//线上支付成功
    public static final String JPUSH_CODE_ORDER_PAYMENT_OFFLINE = "10";//线下支付成功
    public static final String JPUSH_CODE_REMOTE_LOGIN = "11";//异地登录
    public static final String JPUSH_CODE_BARRAGE = "12";//飘窗推送
    public static final String JPUSH_CODE_VIEWJOIN = "14";
    public static final String JPUSH_CODE_SEND_MAN_WORK = "21";
    public static final String JPUSH_CODE_FAKE_LOAN = "66";

    public static final String JPUSH_CODE_MAINTAIN_ORDER = "20";   //发送保养单
    public static final String JPUSH_CODE_MAINTAIN_ORDER_DRVIVER = "22";  //保养单，维修给司机发送推送
    public static final String JPUSH_CODE_MAINTAIN_ORDER_REPAIR = "23"; // 保养单，司机给维修发送推送
    public static final String JPUSH_CODE_MAINTAIN_TEAM_ORDER_PAY = "201";   //车队支付


    public static final String JPUSH_CODE_MAINTAIN_ACCURATE_ORDER = "24";//发送精准救援接单
    public static final String JPUSH_CODE_MAINTAIN_ACCURATE_ORDER_ACCEPT = "25";//精准救援单已被接受
    public static final String JPUSH_CODE_MAINTAIN_DRIVER = "26";//维修填写结算单推给司机
    public static final String JPUSH_CODE_DRIVER_MAINTAIN = "27";//司机结算完成通知维修
    public static final String JPUSH_CODE_MAINTAIN_CANCEL = "28";//取消
    public static final String JPUSH_CODE_MAINTAIN_FINALLY = "29";//维修到达
    public static final String JPUSH_CODE_CONFIRM_ARRIVAL = "30";//维修确认到账
    public static final String JPUSH_CODE_OUTSET = "31";//支付路费，维修出发营救
    public static final String JPUSH_CODE_ORDER_ROBBED = "32";//订单已被抢

    public static final String JPUSH_CODE_MALFUNCTION_ACCURATE_ORDER = "34";//发送精准救援接单
    public static final String JPUSH_CODE_MALFUNCTION_CANCEL_ORDER = "36";//取消
    public static final String JPUSH_CODE_MALFUNCTION_INSURANCELOSS_ORDER = "37";//接单
    public static final String JPUSH_CODE_MALFUNCTION_COMPLETE_ORDER = "38";//接单
    public static final String JPUSH_CODE_MALFUNCTION_CONFIRM_ORDER = "39";//接单
    public static final String JPUSH_CODE_MALFUNCTION_REFUSE_SURVEY = "43";//勘察审核通过
    public static final String JPUSH_CODE_MALFUNCTION_CONFIRM_COMPLETE = "44";//支付审核
    public static final String JPUSH_CODE_MALFUNCTION_REFUSE_COMPLETE = "45";//支付审核


    public static final String JPUSH_MAL_CODE_SEND_ORDER = "100";//发送订单  0
    public static final String JPUSH_CODE_MALFUNCTION_ACCEPT_ORDER = "35";//接单 1
    public static final String JPUSH_CODE_MALFUNCTION_SELECT_ORDER = "46";//选择  2
    public static final String JPUSH_MAL_CODE_STORE_ORDER = "101";//入库  3
    public static final String JPUSH_CODE_MALFUNCTION_CONFIRM_INSURANCELOSS = "40";//定损审核通过 4
    public static final String JPUSH_CODE_MALFUNCTION_REFUSE_INSURANCELOSS = "41";//定损审核拒绝 5
    public static final String JPUSH_CODE_MALFUNCTION_REPAIR = "102";//维修中  6
    public static final String JPUSH_CODE_MALFUNCTION_PAY = "103";//支付中 8
    public static final String JPUSH_CODE_MALFUNCTION_FINISH = "104";//完工 9
    public static final String JPUSH_CODE_MALFUNCTION_PROPORL = "105";//定损中
    public static final String JPUSH_CODE_MALFUNCTION_PAY_FINISH = "106";//支付完毕

    public static final String JPUSH_CODE_MALFUNCTION_SELECT_OTHER = "107";//选择  2
    static {
        notCallList.add("18604525207");
        notCallList.add("15304624090");
        notCallList.add("18845598327");
        notCallList.add("15704611929");
        notCallList.add("13100936332");
        notCallList.add("15946050473");
        notCallList.add("15500000001");
        notCallList.add("15500000002");
        notCallList.add("15500000003");
        notCallList.add("15500000004");
        notCallList.add("15500000005");
        //notCallList.add("13351610686");
    }
}
